import request from '@/utils/request'

// 查询环评和批复列表
export function listReport(query) {
  return request({
    url: '/environment/report/list',
    method: 'get',
    params: query
  })
}

// 查询环评和批复详细
export function getReport(eprId) {
  return request({
    url: '/environment/report/' + eprId,
    method: 'get'
  })
}

// 新增环评和批复
export function addReport(data) {
  return request({
    url: '/environment/report',
    method: 'post',
    data: data
  })
}

// 修改环评和批复
export function updateReport(data) {
  return request({
    url: '/environment/report',
    method: 'put',
    data: data
  })
}

// 删除环评和批复
export function delReport(eprId) {
  return request({
    url: '/environment/report/' + eprId,
    method: 'delete'
  })
}

// 导出环评和批复
export function exportReport(query) {
  return request({
    url: '/environment/report/export',
    method: 'get',
    params: query
  })
}